﻿using System;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Text;

namespace Allocine_Lib
{
    public class Salle
    {
        #region Member Fields

        private string m_SalleId;

        public string SalleId
        {
            get { return m_SalleId; }
            set { m_SalleId = value; }
        }

        private string m_Ville;

        public string Ville
        {
            get { return m_Ville; }
            set { m_Ville = value; }
        }

        private string m_NomSalle;

        public string NomSalle
        {
            get { return m_NomSalle; }
            set { m_NomSalle = value; }
        }

        private string m_CP;

        public string CP
        {
            get { return m_CP; }
            set { m_CP = value; }
        }


        private string m_Lien;

        public string Lien
        {
            get { return m_Lien; }
            set { m_Lien = value; }
        }


        #endregion

        public Salle()
        {

        }
    }

    public class SalleComparer : IComparer<Salle>
    {

        public int Compare(Salle _Salle1, Salle _Salle2)
        {
            int i = -1;
            i = _Salle1.NomSalle.CompareTo(_Salle2.NomSalle);
            return i;
        }

    }
}
